<?php

class User extends E_ARB {

	protected $has_one = array('customer', 'employee');

	function full_name() { return ucfirst($this->title) . ' ' . ucfirst($this->first_name) . ' ' . ucfirst($this->last_name); }
	function address() {
		$address_l_3 = (!empty($this->address_line_3)) ? (',<br />' . ucfirst($this->address_line_3)) : '';
		return ucfirst($this->address_line_1) . ',<br />' . ucfirst($this->address_line_2) . $address_l_3 . '.<br />';
	}

}

?>